package com.luge.composedemo

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.isSystemInDarkTheme
import com.luge.composedemo.ui.theme.DemoTheme

class LoginActivtiy : ComponentActivity() {
    private lateinit var theme: DemoTheme

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        actionBar?.apply {
            hide()
        }
        setContent {
            //theme
            theme = if(isSystemInDarkTheme()){
                DemoTheme.DARK
            }else{
                DemoTheme.LIGHT
            }

            //
        }

    }

}
